package com.zjj.learn.designmodel.work.singleton;

import java.io.Serializable;

/**
 * 饿汉式
 *
 * @author zjj_admin
 */
public final class Singleton1 implements Serializable {
    private Singleton1() {
    }

    private static final Singleton1 INSTANCE = new Singleton1();

    public static Singleton1 getInstance() {
        return INSTANCE;
    }

    public Object readResolve() {
        return INSTANCE;
    }
}